package org.kl.bf.utils;

import org.kl.bf.entity.basic.CalendarType;

/**
 * @Author hqm
 * @CreateTime 2014-3-22 上午1:07:21
 */
public class BasicConstants {

	public static final String YES = "是";
	public static final String NO = "否";

	// --------单据状态--------------------
	public static final String DOC_STATUS_NA = "NA";
	public static final String DOC_STATUS_OP = "OP";

	public static final String DOC_STATUS_CG = "草稿";
	public static final String DOC_STATUS_QR = "确认";
	public static final String DOC_STATUS_CK = "出库";
	public static final String DOC_STATUS_ZF = "作废";
	public static final String PROCESS_DEFINITION_KEY_AUDITPRODTL="auditProDtl";//审计明细审批
	public static final String Administrator_TrueName = "系统管理员";

	public static final Integer YES_INT = 1;
	public static final Integer NO_INT = 2;

	public static final String SESSION_FORCE_LOGOUT_KEY = "force_logout";

	// ------------代码表编号------------

	// -----------------支付方式-----------
	public static final String CASHTYPE_INCOME = "收入";
	public static final String CASHTYPE_SPENDING = "支出";

	// ---------业务类型------------
	public static final String BUSINESS_TYPE_ENTER = "入库";
	public static final String BUSINESS_TYPE_PROFIT_LOSS = "盈亏";
	public static final String BUSINESS_TYPE_OUTER = "出库";
	/**
	 * 默认公司ID
	 */
	public static final String DEFAULTCOMPANYTYPEID = "defaultCompanyTypeId";
	/**
	 * 默认公司名称
	 */
	public static final String DEFAULTCOMPANYTYPE = "defaultCompanyType";
	/**
	 * 数据库驱动类型
	 */
	public static final String JDBC_DRIVER = "jdbc.driver";
	/**
	 * 数据库驱动URL
	 */
	public static final String JDBC_URL = "jdbc.url";
	/**
	 * 数据库驱动username
	 */
	public static final String JDBC_USERNAME = "jdbc.username";
	/**
	 * 数据库驱动password
	 */
	public static final String JDBC_PASSWORD = "jdbc.password";
	/**
	 * 数据库驱动类型_MySQL
	 */
	public static final String JDBC_DRIVER_MYSQL = "com.mysql.jdbc.Driver";
	/**
	 * 数据库驱动类型_Oracle
	 */
	public static final String JDBC_DRIVER_ORACLE = "oracle.jdbc.driver.OracleDriver";
	/**
	 * 数据内容中的数据类型
	 */
	public static final String TABLECODE_DATATYPE = "dataType";
	/**
	 * Excel导入中的Java类型
	 */
	public static final String TableNo_JAVATYPE = "4028b8814596432e014597edf17f0032";
	/**
	 * 缺勤记录的absentType
	 */
	public static final String TableNo_ABSENTTYPE = "4028ef1d4fb9b263014fb9c53c4f000e";
	
	/**
	 * 大扫除明细评分cleanupType
	 */
	public static final String TableNo_CLEANUPTYPE = "402881f151190fdf015119213d920011";
	
	/**
	 * 考试方式的examWay
	 */
	public static final String TableNo_EXAMWAY = "4028efed4fb649c8014fb65f1392005a";
	/**
	 * 考试类型的examType
	 */
	public static final String TableNo_EXAMTYPE = "4028eff64fee5b5b014fee68deec0018";
	/**
	 * 菜单常用按钮
	 */
	public static final String TABLECODE_MENUNORMALBUTTON = "menuNormalButton";

	// ----------------系统配置-------------------
	/**
	 * excel导入上传文件路径
	 */
	public static final String CONFIG_EXCELIMPORTFILEPATH = "excelImportFilePath";
	public static final String CONFIG_UPLOADPATH = "uploadFilePath";
	public static final String CONFIG_RECYCLEPATH = "recycleFilePath";
	public static final String CONFIG_WXUPLOADPATH = "wxUploadFilePath";
	/**
	 * 项目名称
	 */
	public static final String CONFIG_PROJECTNAME = "projectName";
	/**
	 * 上传文件业务类型
	 */
	public static final String CONFIG_FILEBUSINESSTYPE = "fileBusinessType";
	/**
	 * 登录界面
	 */
	public static final String CONFIG_LOGINPAGE = "loginPage";

	// --------------信息系统常量--------------------------
	public static final int ATTRIBUTE_READ = 0; // 已读
	public static final int ATTRIBUTE_UNREAD = 1; // 未读
	public static final int ATTRIBUTE_DRAFT = 2; // 草稿

	public static final int STATUS_UNDELETE = 0; // 没删除
	public static final int STATUS_RECOVERABLE = 1; // 回收
	public static final int STATUS_DELETED = 2; // 删除

	public static final int HAS_ATTACHMENT_NO = 0; // 没有附件
	public static final int HAS_ATTACHMENT_YES = 1; // 有附件

	public static final int OWNER_SENDER = 0; // 此邮件属于发送者
	public static final int OWNER_RECEIVER = 1; // 此邮件属于接收者
	public static final int OWNER_CC = 2; // 此邮件属于抄送方
	public static final int OWNER_BCC = 3; // 此邮件属于密送方
	// ----------------------资金流水账收入及支出类型------
	public static final String cash_type_income = "收入";
	public static final String cash_type_out = "支出";
	// --------------代码表公司类型ID---------------------
	public static final String company_type_id = "40287d814a9510ee014a95123016000f";
	// -------------------公司类型-----------------
	public static final String Company_Type = "公司类型";
	// -------------------教务实训科的组织机构ID-----------------
	public static final String JWSXK_ID = "402881ee50c734d60150c74873bd004f";
	// -------------------学保科的组织机构ID-----------------
		public static final String xbk_ID = "402881ee50c734d60150c749619f0058";

	// ---------微信配置信息，保存在ServletContext中---------------
	public static final String SC_WXMPSERVICE_APPID_MAP = "APPID_WxMpServiceMap";// 微信公众号WXMPSERVICE，以AppId作为Key
	public static final String SC_WXMPSERVICE_TOKEN_MAP = "TOKEN_WxMpServiceMap";// 微信公众号WXMPSERVICE，以Token作为Key
	public static final String SC_WXAPP_APPID_MAP = "APPID_WxAppMap";// 微信公众号APP配置信息，以AppId作为Key
	public static final String SC_WXAPP_TOKEN_MAP = "TOKEN_WxAppMap";// 微信公众号APP配置信息，以Token作为Key

	/**
	 * 系统固定的一个日程类型，用于生成系统自动提醒类的日程
	 */
	public static final CalendarType warnerCalendarType = new CalendarType();

	static {
		warnerCalendarType.setBackgroundColor("#FFAB2E");
		warnerCalendarType.setTypeName("系统提醒");
	}
	// -------------------导入配置明细制动生成忽略字段集-----------------------------------------
	public static final String The_Culum_Name_Not_Input_BIG = "ID,CREATE_BY,CREATE_TIME,CREATE_DEPT,LAST_UPDATE_BY,LAST_UPDATE_TIME";
	public static final String The_Culum_Name_Not_Input_SMALL = "id,create_by,create_time,create_dept,last_update_by,last_update_time";

	// --------------------------------微信通过media_id获取对应media的访问网址--------------------------
	public static final String MEDIO_URL = "http://file.api.weixin.qq.com/cgi-bin/media/get?";
	public static final String ACCESS_TOKEN = "access_token=";
	public static final String MEDIA_ID = "&media_id=";

	// ---------------------------------系统域名路径-------------------------------------------
	public static final String SYSTOM_URL = "http://wu31131129.eicp.net/KLFramework_V2";

	// **----------单据状态----------------
	public static final Integer CONFIRM_STATUS_Cancel = -1;// 撤销，拒绝
	public static final Integer CONFIRM_STATUS_Draft = 0;// 草稿
	public static final Integer CONFIRM_STATUS_Confirm = 1;// 确认
	public static final Integer CONFIRM_STATUS_Approving = 2;// 审批中，提交

	// ----------------附件上传路径
	public static final String BASE_UPLOAD_PATH = "E:\\AuditSupervision_FILES";
	// ---------------------------------系统域名路径-------------------------------------------
	public static final String EXCEL_ERROR_FOLDER = BASE_UPLOAD_PATH + "\\xlsErrTemp";
	public static final String EXCEL_TEMPLATE = BASE_UPLOAD_PATH + "\\excelTemplate";
	
	//邮箱协议，地址，密码
	public static final String PROTOCOL = "emailMessage.PROTOCOL";
	public static final String FROM = "emailMessage.FROM";
	public static final String PWD = "emailMessage.PWD";
	
}
